fun main() {
    val items = listOf("Apple", "Banana", "Cherry")

    // for 循环
    for (item in items) {
        println(item)
    }

    // while 循环
    var index = 0
    while (index < items.size) {
        println("Item at $index is ${items[index]}")
        index++
    }

    // do-while 循环
    var x = 0
    do {
        println("Value of x: $x")
        x++
    } while (x < 5)
}
